import java.util.Arrays;
import java.util.Scanner;

//题目：输入3个数a,b,c，按大小顺序输出。
public class Test34 {
    public static void main(String[] args) {
        Scanner console = new Scanner(System.in);
        System.out.println("请输入三个数:");
        int[] a = new int[3];
        for (int i = 0; i < a.length; i++) {
            a[i] = console.nextInt();
        }
        for (int i = 0; i < 2; i++) {
            for (int j = i + 1; j < 3; j++) {
                if (a[i] < a[j]) {
                    int temp = a[i];
                    a[i] = a[j];
                    a[j] = temp;
                }
            }
        }
        System.out.println(Arrays.toString(a));
    }
}
